#define CONSENS_PACKET_LEN 5
#define REQ_DOWN_PACKET_LEN 4
#define REQ_UP_PACKET_LEN 7
#define SENDING_BUFFER_LEN 10

#define MSG_MOD 127
#define MSG_WINDOW 40

#define SENDING_NULL 0
#define SENDING_ACTION_REQ 1
#define SENSOR_CONSENSUS_REQ 2

#define COLLECT_SENSOR_TIME_SPAN 120
#define COLLECT_SENSOR_TIME_RANDOM_SPAN 20
#define REQ_SENDING_SPAN 4
#define REQ_SENDING_START 30

typedef struct StoreObject
{
    uint8_t preMsgId;
    uint8_t msgId;
    uint16_t preData;
    uint16_t data;
} StoreObject;
